{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/reply/index')}">回帖管理</a></li>
            <li class="layui-this">浏览回帖</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">帖子分类</label>
                        <div class="layui-input-block">
                            <input type="text" name="" value="{$category[$reply['category_id']]}" placeholder="" class="layui-input" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">帖子标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="" value="{$article[$reply['article_id']]}" placeholder="" class="layui-input" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回帖人</label>
                        <div class="layui-input-block">
                            <input type="text" name="" value="{$user[$reply['user_id']]}" placeholder="" class="layui-input" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回帖内容</label>
                        <div class="layui-input-block">
                            <textarea name="" class="layui-textarea" disabled>{$reply.content}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回帖时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="" value="{$reply.create_time}" placeholder="" class="layui-input" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回复点赞数</label>
                        <div class="layui-input-block">
                            <input type="text" name="" value="{$reply.goodcount}" placeholder="" class="layui-input" disabled>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户查看</label>
                        <div class="layui-input-block">
                            {if $reply.reading==1}
                                <i style="font-style: normal;color:#4caf50;line-height: 36px;">已查看</i>
                            {else /}
                               <i style="font-style: normal;color:#e90d24;line-height: 36px;">未查看</i>
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <a href="javascript:history.back();" class="layui-btn">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}